<iframe name="richedit" style="height: 100px; width: 100px"></iframe>
            
<script>
  window.addEventListener("load", () => {
    frames["richedit"].document.designMode = "on";
  });
</script>
